<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%--头部--%>
<div id="rbjHeader">
    <nav class="navbar navbar-inverse rbjNav"><%--navbar-fixed-top--%>
        <div class="container">
            <%--头和手机按钮--%>
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#rbjHeaderBody">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <img src="https://img.alicdn.com/tps/TB1BQh7LpXXXXcJXFXXXXXXXXXX-198-46.gif">
            </div>
            <%--<p class="navbar-text rbjLogoText">Hello520</p>--%>
            <%--小屏收缩部分--%>
            <div class="collapse navbar-collapse" id="rbjHeaderBody">
                <%--功能部分--%>
                <ul class="nav navbar-nav navbar-right">
                    <shiro:authenticated>
                        <li>
                            <a href="/resume/resume.html" target="_blank">
                                <span class="glyphicon glyphicon-education"> 个人简历</span>
                            </a>
                        </li>
                    </shiro:authenticated>
                    <li>
                        <a href="/dubbo" target="_blank">
                            <span class="glyphicon glyphicon-retweet"> 服务控制台</span>
                        </a>
                    </li>
                    <li>
                        <a href="http://localhost:8081/druid/sql.html" target="_blank">
                            <span class="glyphicon glyphicon-eye-open"> SQL监控</span>
                        </a>
                    </li>
                    <shiro:hasRole name="admin">
                        <li>
                            <a href="toAdminMain.do" target="_blank">
                                <span class="glyphicon glyphicon-log-in"> 后台管理</span>
                            </a>
                        </li>
                    </shiro:hasRole>
                    <shiro:authenticated>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
                                <img src="images/userLogo.png" width="20"/>
                                <shiro:principal property="username"/>
                                <span class="caret"></span>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="selectOne.do?id=<shiro:principal property="id"/>" target="_blank">
                                        <span class="glyphicon glyphicon-star-empty"> 个人信息</span>
                                    </a>
                                </li>
                                <li role="separator" class="divider"></li>
                                <li>
                                    <a href="selectOneBack.do?id=<shiro:principal property="id"/>" target="_blank">
                                        <span class="glyphicon glyphicon-edit"> 资料修改</span>
                                    </a>
                                </li>
                                <li role="separator" class="divider"></li>
                                <li><a href="logout.do"><span class="glyphicon glyphicon-off"> 退出登陆</span></a></li>
                            </ul>
                        </li>
                    </shiro:authenticated>
                    <shiro:notAuthenticated>
                        <li>
                            <a href="loginAndReg/login.jsp" target="_blank">
                                <span class="glyphicon glyphicon-user"> 登陆</span>
                            </a>
                        </li>
                    </shiro:notAuthenticated>
                </ul>
            </div>
        </div>
    </nav>
</div>
<%--头部完--%>
